package com.hs.biye.service;

import com.hs.biye.model.DTO.SalaryRequest;
import com.hs.biye.model.VO.SalaryVo;
import com.hs.biye.model.entity.Salary;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
* @author haoshuai
* @description 针对表【salaryId】的数据库操作Service
* @createDate 2023-12-14 18:42:48
*/
public interface SalaryService extends IService<Salary> {

    /**
     * 查询所有的薪资信息
     * @return
     */
    List<SalaryVo> getSalaries();


    /**
     * 获取薪资的总价和类型
     * @return
     */
    List<Salary> getSalaryTotalAndType();

    /**
     * 添加薪资
     * @param salaryRequest
     * @return
     */
    boolean addSalary(SalaryRequest salaryRequest);


    /**
     * 删除薪资
     * @param id
     * @return
     */
    boolean deleteSalary(Integer id);


    //修改薪资
    boolean updateSalary(SalaryRequest salaryRequest);

    SalaryVo getSalariyById(Integer id);
}
